Control structures in programs and computational complexity

نویسنده

  • Karl-Heinz Niggl
چکیده

This thesis is concerned with analysing the impact of nesting (restricted) control structures in programs, such as primitive recursion or loop statements, on the running time or computational complexity. The method obtained gives insight as to why some nesting of control structures may cause a blow up in computational complexity, while others do not. The method is demonstrated for three types of programming languages. Programs of the first type are given as lambda terms over ground-type variables enriched with constants for primitive recursion or recursion on notation. A second is concerned with ordinary loop programs and stack programs, that is, loop programs with stacks over an arbitrary but fixed alphabet, supporting a suitable loop concept over stacks. Programs of the third type are given as terms in the simply typed lambda calculus enriched with constants for recursion on notation in all finite types. As for the first kind of programs, each program t is uniformly assigned a measure μ(t), being a natural number computable from the syntax of t. For the case of primitive recursion, it is shown that programs of μ-measure n + 1 compute exactly the functions in Grzegorczyk level n + 2. In particular, programs of μ-measure 1 compute exactly the functions in FLINSPACE , the class of functions computable in binary on a Turing machine in linear space. The same hierarchy of classes is obtained when primitive recursion is replaced with recursion on notation, except that programs of μ-measure 1 compute precisely the functions in FPTIME , the class of the functions computable on a Turing machine in time polynomial in the size of the input. Another form of measure μ is obtained for the second kind of programs. It is shown that stack programs of μ-measure n compute exactly the functions computable by a Turing machine in time bounded by a function in Grzegorczyk level n + 2. In particular, stack programs of μ-measure 0 compute precisely the FPTIME functions. Furthermore, loop programs of μ-measure n compute exactly the functions in Grzegorczyk level n + 2. In particular, loop programs of μ-measure 0 compute precisely the FLINSPACE functions. As for the third kind of programs, building on the insight gained so far, it is shown how to restrict recursion on notation in all finite types so as to characterise polynomial-time computability. The restrictions are obtained by using a ramified type structure, and by adding linear concepts to the lambda calculus. This gives rise to a functional programming language RA supporting recursion on notation in all finite types. It is shown that RA programs compute exactly the FPTIME functions.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reduction of Computational Complexity in Finite State Automata Explosion of Networked System Diagnosis (RESEARCH NOTE)

This research puts forward rough finite state automata which have been represented by two variants of BDD called ROBDD and ZBDD. The proposed structures have been used in networked system diagnosis and can overcome cominatorial explosion. In implementation the CUDD - Colorado University Decision Diagrams package is used. A mathematical proof for claimed complexity are provided which shows ZBDD ...

متن کامل

The Garland Measure and Computational Complexity of Stack Programs

A key problem in implicit computational complexity is to analyse the impact on program run times of nesting restricted control structures, such as for-do statements in imperative languages. This problem has two aspects. One is whether there are methods of extracting information from the syntax of such programs that give insight as to why some nesting of control structures may cause a blow up in...

متن کامل

Low Complexity and High speed in Leading DCD ERLS Algorithm

Adaptive algorithms lead to adjust the system coefficients based on the measured data. This paper presents a dichotomous coordinate descent method to reduce the computational complexity and to improve the tracking ability based on the variable forgetting factor when there are a lot of changes in the system. Vedic mathematics is used to implement the multiplier and the divider in the VFF equatio...

متن کامل

رفع نوفه ویدئو توسط تبدیل قیچک قطعه‌ای

Parabolic scaling and anisotropic dilation form the core of famous multi-resolution transformations such as curvelet and shearlet, which are widely used in signal processing applications like denoising. These non-adaptive geometrical wavelets are commonly used to extract structures and geometrical features of multi-dimensional signals and preserve them in noise removal treatments. In discrete s...

متن کامل

Application of endurance time method in damage assessment of concrete moment frames

Nonlinear Time History (NTH) analysis is currently the most reliable method for estimating structural behavior. Considerable computational demand and complexity of this method may cause difficulty for its routine practical application. Based on the Methodology of Endurance Time (ET) method, it can estimate the nonlinear response of structures with a much lower computational cost. In this resear...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Ann. Pure Appl. Logic

دوره 133  شماره 

صفحات  -

تاریخ انتشار 2005